﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NetMicro.EventBus.Messages
{
    public class MessageStorageTransfer
    {
        /// <summary>
        /// 存储的消息id
        /// </summary>
        public long Id { get; set; }


        /// <summary>
        /// 延迟消费时间
        /// </summary>
        public long DelayAt { get; set; }

        /// <summary>
        /// 过期时间,0永不过期
        /// </summary>
        public long ExpireTime { get; set; }

        /// <summary>
        /// 事件内容
        /// </summary>
        public string EventBody { get; set; }

        /// <summary>
        /// 已重试次数
        /// </summary>
        public int RetryCount { get; set; }

        /// <summary>
        /// 是否已锁定
        /// </summary>
        public bool IsLocking { get; set; }

        /// <summary>
        /// 锁定结束时间
        /// </summary>
        public long LockEnd { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public long CreateTime { get; set; }


        /// <summary>
        /// 事件名称
        /// </summary>
        public string EventName { get; set; }

        /// <summary>
        /// 消息版本
        /// </summary>
        public string Version { get; set; }

        /// <summary>
        /// 事件处理名称
        /// </summary>
        public string EventHandlerName { get; set; }

        /// <summary>
        /// 消息id
        /// </summary>
        public string MsgId { get; set; }

        /// <summary>
        /// 异常信息
        /// </summary>
        public string Exception { get; set; }



    }
}
